//
//  Province.m
//  简易通讯录
//
//  Created by apple on 15/8/26.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "Province.h"

@implementation Province

+ (instancetype)provinceFormDictionary:(NSDictionary *)dict
{
    Province *province = [[Province alloc] init];

//   字典里面还有个字典；
    province.cities = dict[@"cities"];
    province.id = dict[@"id"];
    province.name = dict[@"name"];
    
//    [dict[@"cities"] enumerateObjectsUsingBlock:^(NSDictionary *obj, NSUInteger idx, BOOL *stop)
//     {
//         Cities *cities = [Cities citiesFormDictionary:obj];
//     }];
    
    
    return province;
}

@end
